<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()
            + "://" + request.getServerName()
            + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <title>发表文章</title>
    <link rel="stylesheet" href="<%=basePath%>css/base.css">
    <link rel="stylesheet" href="<%=basePath%>css/style.css">
    <link rel="stylesheet" href="<%=basePath%>an_niu/login2.css">
    <jsp:include page="foot2.jsp"/>

    <%--富文本--%>
    <style>
        textarea {
            display: block;
        }
    </style>
    <link rel="stylesheet" href="<%=basePath%>fuWenBenProduct/default.css"/>
    <script charset="utf-8" src="<%=basePath%>fuWenBenProduct/kindeditor-min.js"></script>
    <script charset="utf-8" src="<%=basePath%>fuWenBenProduct/zh_CN.js"></script>
    <script type="text/javascript" src="<%=basePath%>xialakuang/js/jquery-1.8.3.min.js"></script>
</head>
<body>
<script>
    var editor;
    KindEditor.ready(function (K) {
        editor = K.create('textarea[name="fileEntity.fmain"]', {
            resizeType: 1,
            allowPreviewEmoticons: false,
            allowImageUpload: false,
            items: [
                'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                'insertunorderedlist', '|', 'emoticons', 'image', 'link']
        });
    });
</script>

<%--<div style="text-align:center;margin:50px 0; font:normal 14px/24px g'MicroSoft YaHei';">--%>


<center style="margin-top: 90px;">
    <form action="<%=basePath%>shixun/fileAction" method="post">
        <%--<input hidden name="fileEntity.UserEntity.id" value="${sessionScope.user.id}">--%>
        <div style="width: 700px;height: 480px;overflow:hidden;background-color:whitesmoke">
            <table>
                <tr style="display: block; margin: 20px 0;">
                    <td>
                        <span style="float:left;font-size: 20px"><b>发表文章</b></span>
                    </td>
                </tr>
                <tr style="display: block; margin: 20px 0;">
                    <td>
                        <span style="">标题</span>：
                    </td>
                    <td>
                        <input type="text" name="fileEntity.fname" style="border:1px silver solid;width: 300px;height: 26px">
                    </td>

                    <td>
                        <span>
                            <select name="fileEntity.type" style="margin-left: 110px;border: 1px silver solid;width: 120px;background-color:whitesmoke">
                                <option value="无类别">选择类别</option>
                                <option value="前台页面技术">前台页面技术</option>
                                <option value="javaweb编程">javaweb编程</option>
                                <option value="PHP编程">PHP编程</option>
                                <option value="SSH框架">SSH框架</option>
                                <option value="游戏开发">游戏开发</option>
                            </select>
                        </span>
                    </td>
                </tr>
                <tr style="display: block;">
                    <td valign="top">
                        <span>内容：</span>
                    </td>
                    <td>
                        <textarea name="fileEntity.fmain" type="text"
                                  style="width: 100px; height: 372px; visibility: hidden; display: none;"></textarea>
                    </td>
                </tr>
            </table>
        </div>
        <div style="width: 700px;height: 100px;background-color:whitesmoke">
            <span style="float: left;margin: 20px 0;color:#b2b2b2">请遵守北方民族大学公约言论规则，不得违反国家法律法规</span>
            <div style="float:right;margin-right: 50px;margin-top:20px;">
                <input type="submit" value="发 表" style="width:120px;" class="button_blue"/>
            </div>
        </div>
    </form>
</center>
<br><br>
<jsp:include page="/foot/foot1.jsp"/>
</body>
</html>

